using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Aop.Api.Domain
{
    /// <summary>
    /// LimitPeriodInfo Data Structure.
    /// </summary>
    [Serializable]
    public class LimitPeriodInfo : AopObject
    {
        /// <summary>
        /// 限制规则  IN：包含  EX：排除  IN_INTERVAL：指定区间  EX_INTERVAL：排除区间
        /// </summary>
        [XmlElement("rule")]
        public string Rule { get; set; }

        /// <summary>
        /// 适用周期单位:W:周
        /// </summary>
        [XmlElement("unit")]
        public string Unit { get; set; }

        /// <summary>
        /// 限制值，比如周一的1
        /// </summary>
        [XmlArray("values")]
        [XmlArrayItem("string")]
        public List<string> Values { get; set; }
    }
}
